package com.huarui.notice;

import java.util.Date;

import org.ewaf.framework.model.BaseDataObject;

/**
 * Create Table notice ( -- 通知 id Int AUTO_INCREMENT Primary Key , -- 主键
 * noticeType Int , -- 消息类型(1=站内通知，2=系统通知) senderId Int , -- 发送者(0是系统)
 * receiverId Int , -- 接收者ID receiveType Int , -- 接收者类型（1：公司 2：个人 ，） title
 * varChar ( 500 ) , -- 标题 content varChar ( 2000 ) , -- 内容(内容中在需要的时候包含表单处理的URL)
 * dealed Char ( 0 ) , -- 处理标记(y=处理，n=不处理) url varChar ( 500 ) , -- 需要处理的表单URL
 * gmtCreate DateTime , gmtModify DateTime );
 * 
 * @author zhengtao.wuzt
 * 
 */
public class Notice extends BaseDataObject {
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -5241667836926558520L;

	/**
	 * 主键
	 */
	private Integer id;

	/**
	 * 通知类型(1:站内信 2:系统通知)
	 */
	private int noticeType = 1;

	public static final int NOTICE_TYPE_USER = 1;

	public static final int NOTICE_TYPE_SYS = 2;
	/**
	 * 发送者id
	 */
	private int senderId;

	/**
	 * 接收者类型(1：公司 2：个人)
	 */
	private int receiveType;
	public static final int RECEIVE_TYPE_COMP = 1;
	public static final int RECEIVE_TYPE_USER = 2;

	/**
	 * 接收者id
	 */
	private int receiverId;
    private String uuid;
	private String title;
	private String content;

	/**
	 * 是否已经处理
	 */
	private boolean dealed;
	private int dealId;
	private String dealName;
	private boolean readen;
	private String url;
	private Date gmtCreate;
	private Date gmtModify;
	private String jsModuleId;
	private String jsArgs;
   
	public int getNoticeType() {
		return noticeType;
	}

	public void setNoticeType(int noticeType) {
		this.noticeType = noticeType;
	}

	public int getSenderId() {
		return senderId;
	}

	public void setSenderId(int senderId) {
		this.senderId = senderId;
	}

	public int getReceiveType() {
		return receiveType;
	}

	public void setReceiveType(int receiveType) {
		this.receiveType = receiveType;
	}

	public int getReceiverId() {
		return receiverId;
	}

	public void setReceiverId(int receiverId) {
		this.receiverId = receiverId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isDealed() {
		return dealed;
	}

	public void setDealed(boolean dealed) {
		this.dealed = dealed;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return id;
	}

	public String getJsModuleId() {
		return jsModuleId;
	}

	public void setJsModuleId(String jsModuleId) {
		this.jsModuleId = jsModuleId;
	}

	public String getJsArgs() {
		return jsArgs;
	}

	public void setJsArgs(String jsArgs) {
		this.jsArgs = jsArgs;
	}

	public boolean isReaden() {
		return readen;
	}

	public void setReaden(boolean readen) {
		this.readen = readen;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public int getDealId() {
		return dealId;
	}

	public void setDealId(int dealId) {
		this.dealId = dealId;
	}

	public String getDealName() {
		return dealName;
	}

	public void setDealName(String dealName) {
		this.dealName = dealName;
	}
	
	
}
